package com.peng;

import java.awt.*;
import java.io.Serializable;

public abstract class GameObject implements Serializable {


    public int x;
    public int y;
    protected int width;
    protected int height;

    public abstract void paint(Graphics g);

    public int getWidth() {
        return width;
    }

    public void setWidth(int width) {
        this.width = width;
    }

    public int getHeight() {
        return height;
    }

    public void setHeight(int height) {
        this.height = height;
    }
}
